﻿<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Assembly Name="SPOffline.Web, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=fc71b88f88566c80, processorArchitecture=MSIL" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="AdminControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint.ApplicationPages.Administration" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Page Language="C#" MasterPageFile="~/_admin/admin.master" AutoEventWireup="true" Inherits="SPOffline.Web.WebApplicationOffline" %>

<asp:content ID="placeHolderAdditionalPageHeadContent" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
<script language="javascript">
   function _spBodyOnLoad()
   {
   }
</script>
</asp:content>
<asp:content ID="placeHolderPageTitleContent" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral runat="server" text="Web Application Offline" EncodeMethod='HtmlEncode'/>
</asp:content>
<asp:content ID="placeHolderPageTitleInTitleAreaContent" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral runat="server" text="Web Application Offline" EncodeMethod='HtmlEncode'/>
</asp:content>
<asp:content ID="placeHolderPageDescriptionContent" contentplaceholderid="PlaceHolderPageDescription" runat="server">
 <SharePoint:EncodedLiteral runat="server" text="This page allows you to display a message that a web application is offline." EncodeMethod='HtmlEncodeAllowSimpleTextFormatting'/>
</asp:content>
<asp:content ID="placeHolderMainContent" contentplaceholderid="PlaceHolderMain" runat="server">
  <table width="100%" class="propertysheet" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="ms-descriptionText"> <asp:Label ID="informationMessage" Runat="server" EnableViewState="False" class="ms-descriptionText"/> </td> </tr> <tr> <td class="ms-error"><asp:Label ID="errorMessage" Runat="server" EnableViewState="False" /></td> </tr> <tr> <td class="ms-descriptionText"> </td> </tr> <tr> <td><img src="/_layouts/images/blank.gif" width="10" height="1" alt="" /></td> </tr> </table>
  <TABLE border="0" cellspacing="0" cellpadding="0" width="100%">
  		<colgroup>
			<col style="WIDTH: 50%"></col>
			<col style="WIDTH: 50%"></col>
		</colgroup>
	<wssuc:InputFormSection runat="server"
		Title="Web Application"
		Description="Select a Web Application." >
		<Template_InputFormControls>
			<tr><td>
			<SharePoint:WebApplicationSelector id="webAppSelector"
				OnContextChange="webAppSelector_ContextChange" AllowAdministrationWebApplication="false" runat="server" />
				<asp:Label ID="webAppJobStatus" Runat="server" EnableViewState="False" class="ms-descriptionText" Font-Bold="True" />
			</td></tr>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
	<wssuc:InputFormSection Title="Status" runat="server">
		<Template_Description>
			Set the web application online or offline.
		</Template_Description>
		<Template_InputFormControls>
			<wssuc:InputFormControl runat="server" LabelText="Web Application is:" />
			<wssawc:InputFormRadioButton runat="server" id="onlineRadio" LabelText="Online" GroupName="Status" Checked="true"  />
			<wssawc:InputFormRadioButton runat="server" id="offlineRadio" LabelText="Offline" GroupName="Status" />
		</Template_InputFormControls>
	</wssuc:InputFormSection>
	<wssuc:InputFormSection Title="Offline Message" runat="server">
		<Template_Description>
			The message to display when the application is offline.
		</Template_Description>
		<Template_InputFormControls>
			<wssuc:InputFormControl runat="server" LabelText="Offline Message:" >
				<Template_Control>
					<wssawc:InputFormTextBox Title="Offline Message" class="ms-input" ID="offlineMessage" Runat="server" TextMode="MultiLine" Columns="80" Rows="6"/>
					<wssawc:InputFormRequiredFieldValidator ID="offlineMessageReq" ControlToValidate="offlineMessage" ErrorMessage="Offline Message is Required" Runat="server" EnableClientScript="true" Enabled="False"  />
				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
	<wssuc:InputFormSection Title="Schedule" runat="server" description="">
		<Template_Description>
			Schedule when the application should be online or offline.
		</Template_Description>		
		<Template_InputFormControls>
			<wssuc:InputFormControl runat="server" LabelText="Schedule:">
				<Template_Control>
					<asp:RadioButton id="timeNowRadio" GroupName="DeployTime" runat="server" Text="Now" Title="Now" Checked="true" />
					<br>
					<asp:RadioButton id="timeSpecifiedRadio" GroupName="DeployTime" runat="server" Text="At the specified time" Title="Specified Time" />
					<br>
					  <SharePoint:DateTimeControl
						id="scheduleTime"
						CalendarImageUrl="/_layouts/images/calendar.gif"
						DatePickerFrameUrl="/_layouts/iframe.aspx"
						runat="server" />
				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
	<wssuc:ButtonSection runat="server">
		<Template_Buttons>
			<asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" Text="OK" id="submitButton" Enabled="false" />
		</Template_Buttons>
	</wssuc:ButtonSection>
	</TABLE>
</asp:content>